# 打开原始文件，读取内容并替换分隔符
with open(r'.\book_crossing\Ratings.csv', 'r', encoding='utf-8') as infile:
    lines = infile.readlines()

# 将每行的分隔符从分号替换为逗号
with open(r'.\book_crossing\Ratings_modified.csv', 'w', encoding='utf-8') as outfile:
    for line in lines:
        # 使用逗号替换分号
        outfile.write(line.replace(';', ','))